<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>
</head>
<body>
    <!--1.await是用来获取promise函数的返回值的 
        2.await必须在async定义的函数里面使用 -->
    <script>
        async function go(){
            return 10;
        }
        async function result(){
            var res = await go;
            console.log(res);
        }
        result();

    </script>
</body>
</html>